package com.yanfan.lighting.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

import com.yanfan.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 照明系统操作日志对象 ibms_lighting_log
 *
 * @author genluo
 * @date 2024-08-27
 */

@Data
public class IbmsLightingLog implements Serializable{

private static final long serialVersionUID=1L;

    /**
     * id
     */
    @Excel(name = "id")
    @TableId(value = "id" , type = IdType.AUTO) // 整型类型使用自增
    private Long id;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    private Long deviceId;

    /**
     * 回路id
     */
    @Excel(name = "回路id")
    private Long loopId;

    /**
     * 动作
     */
    @Excel(name = "动作")
    private String action;

    /**
     * 亮度级别
     */
    @Excel(name = "亮度级别")
    private Long brightnessLevel;

    /**
     * 执行人
     */
    @Excel(name = "执行人")
    private String executedBy;

    /**
     * 执行时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "执行时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "执行时间不能为空")
    private Date executedAt;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String description;


}
